cmake_minimum_required(VERSION 3.15)
project(ch01 C)

set(CMAKE_C_STANDARD 99)

add_executable(main main.c)
add_executable(server hello/hello_server.c)
add_executable(client hello/hello_client.c)
add_executable(lopen low/low_open.c)
add_executable(lread low/low_read.c)
add_executable(endian endian/endian_conv.c)
add_executable(echo_server echo/echo_server.c)
add_executable(echo_client echo/echo_client.c)
add_executable(echo_client2 echo/echo_client2.c)
add_executable(uecho_server udp_echo/uecho_server.c)
add_executable(uecho_client udp_echo/uecho_client.c)
add_executable(file_client file/file_client.c)
add_executable(file_server file/file_server.c)
add_executable(echo_select echo_select/select.c)
add_executable(echo_selectserv echo_select/echo_selectserv.c)
add_executable(echo_epollserv echo_epoll/echo_epollserv.c)
add_executable(echo_epltserv echo_epoll/echo_EPLTserv.c)
add_executable(echo_epetserv echo_epoll/echo_EPETserv.c)